#ifndef SERVERTHREAD_H
#define SERVERTHREAD_H

#include <QObject>
#include <QThread>
#include <QTcpServer>
#include <QJsonDocument>
#include <QJsonObject>
#include "PptpSocket.h"
#include "PptpServerRoute.h"

class ServerThread : public QThread
{
    Q_OBJECT
public:
    // explicit ServerThread(PptpSocket *pptpSocket);
    explicit ServerThread(QTcpSocket *tcpSocket);
    void run();

private:
    // PptpSocket *pptpSocket;
    QTcpSocket *tcpSocket;

signals:
    void threadEnd();
};

#endif // SERVERTHREAD_H
